package cn.ted.sdkplugin

import android.content.Context

import cn.ted.pluginlib.contract.ITestPlugin

/**
 * Created by sfshine on 18-6-5.
 */
class TestPluginImpl : ITestPlugin {

    override fun getTipsFromJava(context: Context): String {
        return "hey guys! I am from TestPluginImpl"
    }

    override fun getTipsFromNative(): String {
        return stringFromJNI()
    }

    private external fun stringFromJNI(): String

    companion object {

        init {
            System.loadLibrary("native-lib")
        }
    }
}